﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using BITC.Web.Library.Base;
using VVA.Data.Resource;
using System.Web.Mvc;

namespace VVA.Data.Entity
{
    public class Product : BusinessObject
    {
        public int ProductID { get; set; }

        [Display(Name = "Product_Taxonomy", ResourceType = typeof(EntityResource))]
        [Required(ErrorMessageResourceName = "Required_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public Guid TaxonomyID { get; set; }

        [Display(Name = "Product_Taxonomy", ResourceType = typeof(EntityResource))]
        public string TaxonomyName { get; set; }

        public string TaxonomySlug { get; set; }

        [Required(ErrorMessageResourceName = "Required_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        [Display(Name = "Product_ProductName", ResourceType = typeof(EntityResource))]
        [StringLength(255, ErrorMessageResourceName = "StringLength_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public string ProductName { get; set; }

        [Display(Name = "Slug", ResourceType = typeof(EntityResource))]
        [StringLength(50, ErrorMessageResourceName = "StringLength_ErrorMessage", ErrorMessageResourceType = typeof(MessageResource))]
        public string Slug { get; set; }

        [Display(Name = "Product_ProductImage", ResourceType = typeof(EntityResource))]
        public string ProductImage { get; set; }

        [Display(Name = "Description", ResourceType = typeof(EntityResource))]
        [AllowHtml]
        public string Description { get; set; }

        [Display(Name = "SortOrder", ResourceType = typeof(EntityResource))]
        public int SortOrder { get; set; }

        [Display(Name = "Product_Content", ResourceType = typeof(EntityResource))]
        [AllowHtml]
        public string Content { get; set; }

        [Display(Name = "Product_Dosage", ResourceType = typeof(EntityResource))]
        [AllowHtml]
        public string Dosage { get; set; }

        [Display(Name = "Product_Value", ResourceType = typeof(EntityResource))]
        [AllowHtml]
        public string Value { get; set; }

        [Display(Name = "Product_Composition", ResourceType = typeof(EntityResource))]
        [AllowHtml]
        public string Composition { get; set; }
    }
}
